<?php
// +------------------------------------------------------------------
// | cls-captcha [ think captcha, use cache save key-value, does not use session. ]
// | Copyright (c) 2022 All rights reserved.
// | Based on think-captcha, apply to ThinkPHP 6 | 8.
// | Licensed Mulan PSL v2 ( http://license.coscl.org.cn/MulanPSL2 )
// | Author: CLS <422064377>
// | CreateDate: 2024/8/20
// +------------------------------------------------------------------

namespace chleniang\ClsCaptcha\facade;

use think\Facade;


/**
 * @see     \chleniang\ClsCaptcha\Captcha
 *
 * @package \chleniang\ClsCaptcha\facade
 *
 * @method static array create(string|null $config = null) 生成验证码并把验证码数据保存在Cache中; 返回 ["key"=>"存储key","img"=>"base64图片内容"]
 * @method static bool check(string $cacheKey,string $code) 校验验证码是否正确; 校验通过返回true,否则抛出异常;
 * @method static static store(string|null $storeKey = null) 设置缓存存储标识(null使用默认缓存);
 *
 */
class Captcha extends Facade
{
    protected static function getFacadeClass()
    {
        return \chleniang\ClsCaptcha\Captcha::class;
    }

}